file(GLOB SRC_CODE *.cu *.cpp)
message("System Code 1: ${SRC_CODE}")

file(GLOB HEAD_CODE *.h *.hpp *.cuh)
file(GLOB HEAD_UTILS ../utils/*.h)

#find_package(OpenSSL REQUIRED)

# 生成动态库
add_library(tracker4y SHARED ${SRC_CODE})
target_link_libraries(tracker4y ${OpenCV_LIBS} nvinfer cuda cublas cudart cudnn OpenSSL::SSL OpenSSL::Crypto)# 必须链接

# ⽂件放到该⽬录下
#INSTALL(FILES ${HEAD_CODE} DESTINATION include/tracker4y)
#INSTALL(FILES ${HEAD_UTILS} DESTINATION include/utils)

INSTALL(FILES ${HEAD_CODE} DESTINATION include/4yftvcv/tracker4y)
INSTALL(FILES ${HEAD_UTILS} DESTINATION include/4yftvcv/utils)

# ⼆进制,静态库,动态库安装都⽤TARGETS
# ARCHIVE 特指静态库， LIBRARY 特指动态库， RUNTIME 特指可执⾏⽬标⼆进制。
INSTALL(TARGETS tracker4y LIBRARY DESTINATION lib)
